﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace StuEdu.Web.AttendanceCard
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int attendanceCardId=(Convert.ToInt32(strid));
					ShowInfo(attendanceCardId);
				}
			}
		}
		
	private void ShowInfo(int attendanceCardId)
	{
		StuEdu.BLL.AttendanceCard bll=new StuEdu.BLL.AttendanceCard();
		StuEdu.Model.AttendanceCard model=bll.GetModel(attendanceCardId);
		this.lblattendanceCardId.Text=model.attendanceCardId.ToString();
		this.lbltermId.Text=model.termId.ToString();
		this.lblgradeId.Text=model.gradeId.ToString();
		this.lblattendanceTime.Text=model.attendanceTime.ToString();

	}


    }
}
